import request from '@/sheep/request';

export default {
  list: () =>
    request({
      url: 'goods.financial/index',
      method: 'GET',
    }),
  detail: (id) =>
    request({
      url: 'goods.financial/detail',
      method: 'GET',
	  params: {
	    ids: id
	  },
    }),
  buy_financial: (data) =>
    request({
      url: 'goods.financial/buy_financial',
      method: 'POST',
      data
    }),
	user_financial: () =>
	  request({
		url: 'goods.financial/user_financial',
		method: 'GET',
	  }),
  user_financial_log: (id) =>
	request({
	  url: 'goods.financial/user_financial_log',
	  method: 'GET',
	  params: {
		ids: id
	  },
	}),
};
